﻿@{
	Layout = "~/Views/Shared/_Index.cshtml";
	var infoTabView = Html.GetRuntimeUivIew("Details");
	var permissionTabView = Html.GetRuntimeUivIew("Permissions");
	var menuTabView = Html.GetRuntimeUivIew("Menus");
	var accountTabView = Html.GetRuntimeUivIew("Accounts");
	var groupTabView = Html.GetRuntimeUivIew("Groups");
	var prifix = "Ac_Role_Index_";
}
<div id="@(prifix)helperSplitter" class="mini-splitter helperSplitter" style="width: 100%; height: 100%;">
	<div showcollapsebutton="true">
		<div class="mini-splitter" style="width: 100%; height: 100%;">
			<div size="350" showcollapsebutton="true">
				<div class="mini-toolbar" style="border: 0; padding: 2px;">
					<div style="float: left">
						@{Html.RenderPartial("Partials/UiViewButtons");}
					</div>
					<div style="float: right">
					</div>
					<div style="clear: both;">
					</div>
				</div>
				<!--撑满页面-->
				<div class="mini-fit">
					<div id="@(prifix)datagrid1" class="mini-datagrid" style="width:100%;height:100%;" allowalternating="true"
						 url="@Url.Action("GetPlistRoles")" idfield="Id" multiselect="true" showmodified="false"
						 sizelist="[5,10,20,50]" pagesize="20" showfilterrow="true">
						<div property="columns">
							<div type="indexcolumn"></div>
							<div type="checkcolumn"></div>
							<div name="action" width="70" headeralign="center" align="center" cellstyle="padding:0;">
								<a id="@(prifix)btnSearchClear" property="filter" class="mini-button" style="float: right;">条件清空</a>
							</div>
							<div field="Name" width="150" headeralign="center" allowsort="true">
								@Html.IconLabel("Name")
								<input id="@(prifix)NameFilter" name="Name" property="filter" class="mini-textbox" style="width: 100%;" />
							</div>
							<div field="IsEnabled" width="80" headeralign="center" align="center" allowsort="true">
								@Html.IconLabel("IsEnabled")
								<input id="@(prifix)IsEnabledFilter" property="filter" name="IsEnabled" class="mini-combobox" style="width: 100%;"
									   textfield="name" valuefield="code" data="@Html.DicItemJsonArray(Html.GetProperty("IsEnabled"))" shownullitem="true" />
							</div>
							<div field="CategoryCode" width="90" headeralign="center" allowsort="true">
								@Html.IconLabel("CategoryCode")
								<input id="@(prifix)CategoryCodeFilter" property="filter" name="CategoryCode" class="mini-combobox" style="width: 100%;"
									   textfield="name" valuefield="code" data="@Html.DicItemJsonArray(Html.GetProperty("CategoryCode"))" shownullitem="true" />
							</div>
							<div field="SortCode" width="70" headeralign="center" align="center" allowsort="true">
								@Html.IconLabel("SortCode")
							</div>
						</div>
					</div>
				</div>
			</div>
			<div showcollapsebutton="true">
				<div id="@(prifix)tabs1" class="mini-tabs" style="width: 100%; height: 100%;display:none;"
					 activeindex="0" bodystyle="padding:0;border:0;">
					<div name="infoTab" bodycls="inner" title="@infoTabView.Title" iconstyle="background:url(/content/icons/16x16/@infoTabView.Icon)">
					</div>
					<div name="permissionTab" bodycls="inner" title="@permissionTabView.Title" iconstyle="background:url(/content/icons/16x16/@permissionTabView.Icon)">
					</div>
					<div name="menuTab" bodycls="inner" title="@menuTabView.Title" iconstyle="background:url(/content/icons/16x16/@menuTabView.Icon)">
					</div>
					<div name="accountTab" bodycls="inner" title="@accountTabView.Title" iconstyle="background:url(/content/icons/16x16/@accountTabView.Icon)">
					</div>
					<div name="groupTab" bodycls="inner" title="@groupTabView.Title" iconstyle="background:url(/content/icons/16x16/@groupTabView.Icon)">
					</div>
					@{
						var operationLogView = this.GetOperationLogEntityType();
						if (operationLogView.Permit()) {
						<div name="operationLogTab" bodycls="inner" title="@operationLogView.Title" iconstyle="background:url(/content/icons/16x16/@operationLogView.Icon)">
						</div>
						}
					}
				</div>
			</div>
		</div>
	</div>
	<div size="250" showcollapsebutton="true" visible="false" expanded="false">
		@{Html.RenderPartial("Partials/HelpPane");}
	</div>
</div>
